import { request } from 'umi';

export function fetchTreeData() {
  return request('/api/tree');
}

export function fetchSelectOpts({ id }) {
  return request(`/api/selectOpts?id=${id}`);
}
